import request from '/@/utils/request';


/**
 * 查询字典列表
 * @param params
 */
export function treeForManage() {
    return request({
        url: '/sysMenu/treeForManage',
        method: 'get'
    });
}


export function editMenu(data:Object) {
    return request({
        url: '/sysMenu',
        method: 'put',
        data:data
    });
}

export function addMenu(data:Object) {
    return request({
        url: '/sysMenu',
        method: 'post',
        data:data
    });
}


export function deleteById(menuId:Number) {
    return request({
        url: '/sysMenu/'+menuId,
        method: 'delete'
    });
}
